//验证是否是跳过登录页面直接访问的
$(document).ready(function(){
	let token;
	verificationToken();
	function verificationToken(){
    token = window.sessionStorage.getItem("access_token");
	if(token == null){
		window.location.replace("login.html");
		return false;
	}
	$.ajax({
		type: "GET",
		headers: {
			"token": token
		},
		url: ctx + "token/verification",
		xhrFields: {//携带cookie信息
			withCredentials: true
		},
		success: function (result) {
		 if(result.code != 200){
			 window.location.replace("login.html");
		 }
		}
	})
  }
});